<template>
  <div>
    <div class="content">
      <div  class="content-wxparse">

        <wxParse  :content="info">  </wxParse>
      </div>

    </div>
    <Contact> </Contact>
  </div>
</template>

<script>
  const wxapp = getApp();
  import Contact from '@/components/Contact.vue'
  import wxParse from 'mpvue-wxparse'
  export default {
    data() {
      return {
        info : ''
      }
    },

    components: {
      wxParse,
      Contact
    },

    methods: {

    },

    onLoad() {
      let that = this
      wx.request({
        url: wxapp.globalData.ROOT_URL, //仅为示例，并非真实的接口地址
        data: {
           service: 'App.Hong.GetCategoryInfo',
           table: '5_share_category',
           id: 5
        },
        header: {
            'content-type': 'application/json' // 默认值
        },
        success: function(res) {
          that.info = res.data.data.result.content
          console.log(that.info)
          wx.hideLoading()
        }
      })
    }
  }
</script>
<style>
.wxParse view{
  padding: 0 10rpx;
}
</style>

<style scoped>

  .content{
    font-size: 25rpx;
    box-sizing: border-box;
    padding: 0 10rpx;
  }

</style>
